package com.kuangstudy.common.demo1;

import com.kuangstudy.common.demo1.Student;

/**
 * ClassName: UnsafeBuyTicket
 * date: 2021/07/14 11:42:05
 *
 * @author zlk
 */
public class Demo1 {
    public static void main(String[] args) {
        /*创建外部类对象*/
        Student student = new Student();
        /*创建内部类对象*/
        Student.Head head = student.new Head();
        head.show();//aaa 18
        /*一步到位*/
        Student.Head head1 = new Student().new Head();
        head1.show();//        aaa 18

    }
}
